extends Node

@export var camera: Camera3D
@export var dice: RigidBody3D

signal on_result(points: int)

func _on_dice_stable(p: int):
	on_result.emit(p)

func reroll():
	dice.position = Vector3(0, 3, 0)
	camera.position.x = 0
	camera.position.z = 0
	dice.roll()
